import redis.clients.jedis.Jedis;

import java.util.Set;

/**
 * @Author MinXu
 * @Date 2021/1/8 10:45
 * QQ   754647431
 */
public class Main {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("47.95.208.251", 9000);
        jedis.auth("123456");


        Set<String> keys = jedis.keys("*");
        System.out.println(keys);

        String name = jedis.get("name");
        System.out.println(name);
        jedis.close();
    }
}
